import { request } from '@umijs/max';

export async function fakeSubmitForm(params: any) {
  return request('/api/advancedForm', {
    method: 'POST',
    data: params,
  });
}


export async function getSettingList(params: any = {}) {
  return request('/setting', {
    method: 'get',
    params: params,
  });
}

export async function saveFeeSetting(data: any = {}) {
  return request('/setting/fee', {
    method: 'POST',
    data,
  });
}


export async function saveRebateSetting(data: any = {}) {
  return request('/setting/rebate', {
    method: 'POST',
    data,
  });
}

export async function saveRebateDecrSetting(data: any = {}) {
  return request('/setting/rebate/decr', {
    method: 'POST',
    data,
  });
}